package com.ucode.crm.mode;

import com.ucode.tool.base.BaseMode;

/**
 * 负责人变更记录
 * @author: liliang
 * @date: 2020年2月14日 下午4:35:26
 */
public class OwnerChangeRecord extends BaseMode<Long>{

    private static final long serialVersionUID = -4775708027596772154L;
    
    /**
     * 目标Id
     */
    private Long targetId;
    /**
     * 目标类型:0->客户1->联系人2->商机
     * 
     */
    private Integer targetType;
    /**
     * 上一任负责人,为0则代表无上一任负责人
     */
    private Long preOwnerUserId;
    /**
     * 接收人,为0则代表无接手人
     */
    private Long postOwnerUserId;
    /**
     * 操作人
     */
    private Long operatorId;
    
    public OwnerChangeRecord(){}

    public OwnerChangeRecord(Long targetId, Integer targetType, Long preOwnerUserId, Long postOwnerUserId,Long operatorId) {
        super();
        this.targetId = targetId;
        this.targetType = targetType;
        this.preOwnerUserId = preOwnerUserId;
        this.postOwnerUserId = postOwnerUserId;
        this.operatorId = operatorId;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public Integer getTargetType() {
        return targetType;
    }

    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }

    public Long getPreOwnerUserId() {
        return preOwnerUserId;
    }

    public void setPreOwnerUserId(Long preOwnerUserId) {
        this.preOwnerUserId = preOwnerUserId;
    }

    public Long getPostOwnerUserId() {
        return postOwnerUserId;
    }

    public void setPostOwnerUserId(Long postOwnerUserId) {
        this.postOwnerUserId = postOwnerUserId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }
    
}
